package com.xingxuecn.limit.service;

import com.xingxuecn.limit.common.model.User;
import com.xingxuecn.limit.common.model.Page;


import java.sql.SQLException;
import java.util.List;

/**
 * @author Kris at 2018/9/5 17:58
 */
public interface UserService {
    List<User> findAll() throws SQLException;

    List<User> search(User user) throws SQLException;

    int add(User user) throws SQLException;

    int update(User user) throws SQLException;

    int delete(Integer uid) throws SQLException;


    /*List<TreeNode> userTree() throws SQLException;*/

    Page searchPage(User user, Integer page, Integer rows) throws SQLException;
}
